//
//  Macros.h
//  AchillesDefense
//
//  Created by Ngo Duc Hiep on 6/7/12.
//  Copyright (c) 2012 PTT Solution Inc. All rights reserved.
//

#ifndef AchillesDefense_Macros_h
#define AchillesDefense_Macros_h

#include <stdlib.h>
#include "cocos2d.h"


using namespace std;

inline const char* R(const char* path){
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
    char* pos = strrchr(path, '/');
    if(pos != NULL){
        return pos + 1;
    }
    
    return path;
#else
    return path;
#endif
}

inline float screenScale(float f){
	return (f/0.6f);
}
#endif
